import Vue from 'vue'
import VueRouter from 'vue-router'


import Yuan from './views/Yuan.vue'
import Ban from './views/Ban.vue'

//use后才能在其他地方使用router-view这些组件
Vue.use(VueRouter)
const routes = [
    //设置学院的默认显示
    { path:'/' , component:Yuan},
    { path:'/ban',component:Ban}

]

export default new VueRouter({

    routes

})